﻿using SqlSugar;

namespace zhwy.saas.api.Entity.Other
{
    /// <summary>
    /// 上传文件信息表
    /// </summary>
    [SugarTable("files")]
    public class FilesEntity : TenantBaseEntity
    {
        /// <summary>
        /// 备  注:
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
        public long Id { get; set; }
 
        /// <summary>
        /// 备  注:文件名
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "file_name")]
        public string File_name { get; set; } = null!;

        /// <summary>
        /// 备  注:文件存储路径
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "file_path")]
        public string File_path { get; set; } = null!;

        /// <summary>
        /// 备  注:文件大小（以字节为单位）
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "file_size")]
        public int File_size { get; set; }

        /// <summary>
        /// 备  注:上传文件系统渠道
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "sys_upload_type")]
        public string Sys_Upload_Type { get; set; }

        /// <summary>
        /// 备  注:文件上传时间
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "upload_time")]
        public DateTime Upload_time { get; set; }

        /// <summary>
        /// 备  注:备注
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "description")]
        public string? Description { get; set; }

        /// <summary>
        /// 备  注:标记文件是否已删除，0 表示未删除，1 表示已删除
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "is_deleted")]
        public bool Is_deleted { get; set; }
    }
}
